﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HrEFCore
{
	public class CFTK
	{
		[Key]
		public short FtkId { get; set; }//主键
		public string FirstKindId { get; set; }//一级机构编号
		public string FirstKindName { get; set; }//一级机构名称
		public string SecondKindId { get; set; }//二级机构编号
		public string SecondKindName { get; set; }//二级机构名称
		[Required(ErrorMessage ="请输入机构编号")]
		public string ThirdKindId { get; set; }//三级机构编号
		[Required(ErrorMessage = "请输入机构名称")]
		public string ThirdKindName { get; set; }//三级机构名称
		[Required(ErrorMessage = "请输入机构销售责任人编号")]
		public string ThirdKindSaleId { get; set; }//三级机构销售责任人编号
		public string ThirdKindIsRetail { get; set; }//三级机构是否为零售店
        //public List<CFSK> children { get; set; }
    }
}
